import Http from "../utils/Http.js";

/**
 * 获取菜单信息
 */
const menuList = async () => {
    return await Http.httpPost("/menu/menuList", {});
}


/**
 * 添加菜单信息
 * @param 参数信息
 * @returns {Promise<void>} 异步响应
 */
const addMenuRole = async (param) => {
    return await Http.httpPost("/menu/addMenuResource", param);
}

export default {
    menuList: menuList,
    addMenuRole: addMenuRole,
}
